export function useThrottle(cb, duration = 100){
  let start = +new Date();
  return function(){
    let args = arguments;
    let context = this
    let now = +new Date();
    if(now - start >= duration){
      cb.apply(context, args);
      start = now
    }
  }
}